import socket
# #客户端
while (str!="root.123"):
    s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
    s.connect(('127.0.0.1',8001))
    str = input("请输入要传入的字符")
    s.sendall(str.encode())
    data = s.recv(1024)
    print(data.decode())
    s.close()




